package thread.thread4;

public class Account {
	private String bank = "ICBC";
	private String acno;
	private int balance;

	public Account(String acno, int balance) {
		super();
		this.acno = acno;
		this.balance = balance;
	}

	public void takeMoney(int money) {
		balance -= money;
	}

	public void saveMoney(int money) {
		balance += money;
	}

	public String getAcno() {
		return acno;
	}

	public void setAcno(String acno) {
		this.acno = acno;
	}

	public int getBalance() {
		return balance;
	}

	public void setBalance(int balance) {
		this.balance = balance;
	}

}
